package com.xiaozhengkeji.colastartboot.events.user;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

import java.time.LocalDateTime;

/**
 * 用户登录事件
 */
@Getter
@Setter
public class UserLoginEvent extends ApplicationEvent {
    public String loginAddress;
    public Boolean isSuccess;
    public String username;
    public LocalDateTime loginTime;

    public UserLoginEvent(Object source, String loginAddress, Boolean isSuccess, String username, LocalDateTime loginTime) {
        super(source);
        this.loginAddress = loginAddress;
        this.isSuccess = isSuccess;
        this.username = username;
        this.loginTime = loginTime;
    }

}
